package define
{
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	
	import mx.controls.TileList;
	import mx.controls.listClasses.IListItemRenderer;

	[Event(name='myDragDrop',type='events.DragEvent')]
	[Event(name='myDragComplete',type='events.DragEvent')]
	public class TileList extends mx.controls.TileList
	{
		public function TileList()
		{
			super();
		}
		
		override protected function drawTileBackground(s:Sprite, rowIndex:int, columnIndex:int, width:Number, height:Number, color:uint, item:IListItemRenderer):DisplayObject
		{
			var obj:Sprite = new Sprite();
			obj.graphics.clear();
			return obj;
		}
		override protected function drawItem(item:IListItemRenderer, selected:Boolean=false, highlighted:Boolean=false, caret:Boolean=false, transition:Boolean=false):void
		{
			super.drawItem(item,false,false,false,false);
			if((item as Object).hasOwnProperty('selected'))
				(item as Object).selected = selected;
		}
	}
}